from openpyxl import load_workbook

wb = load_workbook('color.xlsx')
ws = wb['Sheet']
# print(ws)
print(ws.max_row)
print(ws.max_column)